Trò chơi đua xe động vật trong UNITY Engine
114.674 lượt xem;
- InterpolationSine.cs
- Interpolations /
- Bapk /
- Scripts /
- Assets /
- project /
1 using UnityEngine;
2 using System.Collections;
3
4 public class InterpolationSine : InterpolationProcess {
5 public override float apply(float a)
6 {
7 return (1 - Mathf.Cos(a * Mathf.PI )) / 2;
8 }
9 }
2 using System.Collections;
3
4 public class InterpolationSine : InterpolationProcess {
5 public override float apply(float a)
6 {
7 return (1 - Mathf.Cos(a * Mathf.PI )) / 2;
8 }
9 }